﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevelopmentPFR.Utilitaire;

namespace DevelopmentPFR.Plateforme_Stockage
{
    public partial class CommandesHypermarches : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ListeCommande.DataSource = BaseDeDonnees.ExecuteSelectStoredProcedure("spCommun_ListeCommande");
            ListeCommande.DataBind();

            foreach (GridViewRow row in ListeCommande.Rows)
            {
                ((HyperLink)row.FindControl("linkToDetail")).NavigateUrl = "BonsPreparations.aspx?ref=" + ((HyperLink)row.FindControl("linkToDetail")).Text;
            }
        }
    }
}